
// 获取当前语言属性
export function getLocaleCode() {
	const _localeData = uni.getStorageSync('AppLocale') || {};
	return _localeData.code || 'en';
}

// 修改底部导航菜单
export function setTabBarText() {
	// 底部菜单名称
	const tabbarArr = [
		this.$t('home.bottom.home'),
		this.$t('home.bottom.mall'),
		this.$t('home.bottom.auction'),
		this.$t('home.bottom.my')
	];
	
	for (let i = 0; i < tabbarArr.length; i++) {
		uni.setTabBarItem({
			index: i,
			text: tabbarArr[i],
			fail: (e)=>{
				console.log(e)
			}
		});
	}
	
}